]> dgit.raspbian.org Git - gnome-shell.git/commit
status/bluetooth: Bail out and hide UI when there's no adapter
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 31 Jan 2022 22:40:39 +0000 (23:40 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 18 Feb 2022 19:10:18 +0000 (19:10 +0000)
commitaaf47167b5bb2a4ac15e2cdfdfcac71498dcd7c7
treeb64395981e8d88394f12191427257a8de45d8fc2
parent109e2968e294eb31c67ef0a51d6d5a56d1aa5e40
status/bluetooth: Bail out and hide UI when there's no adapter

While _sync() does already handle the case where there's no adapter just
fine (hiding the item and the indicator), let's make the handling a bit
more obvious and add an explicit check for !this._adapter where we bail
out and hide the UI.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2188>
js/ui/status/bluetooth.js